package com.doge.controller.admin;

import com.doge.bean.base.BaseRespVo;
import com.doge.bean.pojo.goods.GoodsExample;
import com.doge.bean.pojo.goods.GoodsProductExample;
import com.doge.bean.pojo.order.OrderExample;
import com.doge.bean.pojo.user.UserExample;
import com.doge.bean.vo.DashboardVO;
import com.doge.service.admin.dashboard.DashBoardServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @program: project2-wechat-mall
 * @description: 用户首页
 * @author: zhu lei
 * @create: 2021-11-29 20:04
 **/
//UserExample userExample, GoodsExample goodsExample, GoodsProductExample goodsProductExample,
//                                   OrderExample orderExample
@RestController
@RequestMapping("admin/dashboard")
public class DashBoardController {

    @Autowired
    DashBoardServiceImpl dashBoardService;

    @RequestMapping()
    public BaseRespVo dashboard() {
        DashboardVO dashboardVO = dashBoardService.dashboardVO(new UserExample(), new GoodsExample(), new GoodsProductExample(), new OrderExample());
        return BaseRespVo.ok(dashboardVO);
    }
}